import re

with open("/usr/local/logs/http.txt") as f:
    for line in f:
        a = re.search("(http://)([a-zA-z0-9]*\\.*)*", line, re.M)
        if a is None:
            print line;